home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
box.c
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
13KB
|
549 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_box ;
extern int Message_box ;
extern int TIcon_box[4] ;
extern int box_func() ;
extern int Message_vox1 ;
extern int _001Message_vox1 ;
extern int _002Message_vox1 ;
extern int _003Message_vox1 ;
extern int TIcon_boxpaint ;
extern int _004Message_vox1 ;
extern int _005Message_vox1 ;
extern int NumBox_boxpen ;
extern int _006Message_vox1 ;
extern int NumBox_boxx1 ;
extern int _007Message_vox1 ;
extern int NumBox_boxy1 ;
extern int _008Message_vox1 ;
extern int NumBox_boxx2 ;
extern int _009Message_vox1 ;
extern int NumBox_boxy2 ;
extern int DButton_box ;
extern int box_on() ;
extern int _001DButton_box ;
extern int box_off() ;
extern int _002DButton_box ;
extern int box_kaku() ;
extern int _010Message_vox1 ;
extern int _011Message_vox1 ;
extern int _012Message_vox1 ;
extern int _003DButton_box ;
extern int box_set() ;
extern int _013Message_vox1 ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataBOX = { "MmiInit", 30, 0 } ;
/* Dialog_box */
static MMIPACKET d001 = { &Dialog_box,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
23, 25, 426, 346, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* Message_box */
static MMIPACKET d002 = { &Message_box,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
31, 32, 419, 55, 0,15,12,
MS_NONEL40,
"四角形の描画",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* TIcon_box[0] */
static MMIPACKET d003 = { &TIcon_box[0],
&Dialog_box,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d003d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
34, 66, 51, 85, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_func,
0x0000, 259, 260
} ;
/* Message_vox1 */
static MMIPACKET d004 = { &Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
55, 64, 214, 87, 0,15, 0,
MS_NONEL40,
"320*240の32000色画面",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* TIcon_box[1] */
static MMIPACKET d005 = { &TIcon_box[1],
&Dialog_box,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d005d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
232, 66, 249, 85, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_func,
0x0000, 259, 260
} ;
/* _001Message_vox1 */
static MMIPACKET d006 = { &_001Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
253, 65, 412, 88, 0,15, 0,
MS_NONEL40,
"512*480の32000色画面",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* TIcon_box[2] */
static MMIPACKET d007 = { &TIcon_box[2],
&Dialog_box,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d007d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
34, 98, 51, 117, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_func,
0x0000, 259, 260
} ;
/* TIcon_box[3] */
static MMIPACKET d008 = { &TIcon_box[3],
&Dialog_box,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d008d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
233, 98, 250, 117, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_func,
0x0000, 259, 260
} ;
/* _002Message_vox1 */
static MMIPACKET d009 = { &_002Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
55, 96, 196, 119, 0,15, 0,
MS_NONEL40,
"720*480の256色画面",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _003Message_vox1 */
static MMIPACKET d010 = { &_003Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d010d = { MS_CENTERL40 | MS_DSPONLYL40,
255, 96, 400, 119, 0,15, 0,
MS_NONEL40,
"640*480の16色画面",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* TIcon_boxpaint */
static MMIPACKET d011 = { &TIcon_boxpaint,
&Dialog_box,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d011d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
265, 145, 282, 164, 0, 7,15,
MS_UFRAMEL40 | MS_FRAMEL40,
0,
0x0000, 259, 260
} ;
/* _004Message_vox1 */
static MMIPACKET d012 = { &_004Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d012d = { MS_CENTERL40 | MS_DSPONLYL40,
44, 143, 135, 166, 0,15, 0,
MS_NONEL40,
"ペンの太さ",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _005Message_vox1 */
static MMIPACKET d013 = { &_005Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d013d = { MS_CENTERL40 | MS_DSPONLYL40,
280, 143, 395, 166, 0,15,15,
MS_NONEL40,
"枠の中を塗る",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* NumBox_boxpen */
static MMIPACKET d014 = { &NumBox_boxpen,
&Dialog_box,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d014d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
136, 145, 180, 165, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
1, 1, 32, 1, 0,
263, 264
} ;
/* _006Message_vox1 */
static MMIPACKET d015 = { &_006Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d015d = { MS_CENTERL40 | MS_DSPONLYL40,
47, 190, 148, 213, 0,15, 0,
MS_NONEL40,
"左上のX座標",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* NumBox_boxx1 */
static MMIPACKET d016 = { &NumBox_boxx1,
&Dialog_box,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d016d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
154, 191, 198, 211, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 720, 1, 0,
263, 264
} ;
/* _007Message_vox1 */
static MMIPACKET d017 = { &_007Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d017d = { MS_CENTERL40 | MS_DSPONLYL40,
236, 190, 337, 213, 0,15, 0,
MS_NONEL40,
"左上のY座標",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* NumBox_boxy1 */
static MMIPACKET d018 = { &NumBox_boxy1,
&Dialog_box,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d018d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
347, 191, 391, 211, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 480, 1, 0,
263, 264
} ;
/* _008Message_vox1 */
static MMIPACKET d019 = { &_008Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d019d = { MS_CENTERL40 | MS_DSPONLYL40,
47, 229, 148, 252, 0,15, 0,
MS_NONEL40,
"右下のX座標",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* NumBox_boxx2 */
static MMIPACKET d020 = { &NumBox_boxx2,
&Dialog_box,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d020d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
154, 231, 198, 251, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 720, 1, 0,
263, 264
} ;
/* _009Message_vox1 */
static MMIPACKET d021 = { &_009Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
236, 230, 337, 253, 0,15, 0,
MS_NONEL40,
"右下のY座標",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* NumBox_boxy2 */
static MMIPACKET d022 = { &NumBox_boxy2,
&Dialog_box,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d022d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
347, 231, 391, 251, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 480, 1, 0,
263, 264
} ;
/* DButton_box */
static MMIPACKET d023 = { &DButton_box,
&Dialog_box,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d023d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
59, 305, 138, 330, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
box_on,
0x0000
} ;
/* _001DButton_box */
static MMIPACKET d024 = { &_001DButton_box,
&Dialog_box,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d024d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
318, 305, 397, 330, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_off,
0x0000
} ;
/* _002DButton_box */
static MMIPACKET d025 = { &_002DButton_box,
&Dialog_box,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d025d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
165, 305, 291, 330, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_kaku,
0x0000
} ;
/* _010Message_vox1 */
static MMIPACKET d026 = { &_010Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d026d = { MS_CENTERL40 | MS_DSPONLYL40,
60, 306, 139, 329, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _011Message_vox1 */
static MMIPACKET d027 = { &_011Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d027d = { MS_CENTERL40 | MS_DSPONLYL40,
166, 306, 290, 329, 0,15,15,
MS_NONEL40,
"四角形確認",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _012Message_vox1 */
static MMIPACKET d028 = { &_012Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d028d = { MS_CENTERL40 | MS_DSPONLYL40,
319, 306, 398, 329, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _003DButton_box */
static MMIPACKET d029 = { &_003DButton_box,
&Dialog_box,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d029d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
149, 269, 305, 292, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
box_set,
0x0000
} ;
/* _013Message_vox1 */
static MMIPACKET d030 = { &_013Message_vox1,
&Dialog_box,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d030d = { MS_CENTERL40 | MS_DSPONLYL40,
150, 271, 304, 291, 0,15,15,
MS_NONEL40,
"座標位置指定",
2, 16, 16,
MS_NONEL40,
2, 0
} ;